<?php

namespace App\System\Cms\Repositories;



use App\System\Base\Repositories\Repository;

use App\System\Cms\Model\CmsFeedback;

class CmsAdvertisingRepository extends Repository
{
    //
    public function createdNormal($query,$user_id)
    {

//        $data['mobile'] = $query->mobile;
//        $data['type'] = $query->action;
//        $data['title'] = '';
//        $data['content'] = $query->content;
//        $data['user_id']=$user_id;
        $cmsFeedBackObj = new CmsFeedback();
        $cmsFeedBackObj->mobile = $query->mobile;
        $cmsFeedBackObj->type = $query->action;
        $cmsFeedBackObj->title = '';
        $cmsFeedBackObj->content = $query->content;
        $cmsFeedBackObj->user_id = $user_id;
        return $cmsFeedBackObj->save();

    }
}
